//package com.uniquesoft.excelwriter;
//
//import  java.io.*;
//import  org.apache.poi.hssf.usermodel.HSSFSheet;
//import  org.apache.poi.hssf.usermodel.HSSFWorkbook;
//import org.apache.poi.xssf.usermodel.examples.CreateCell;
//import  org.apache.poi.hssf.usermodel.HSSFRow;
//import  org.apache.poi.hssf.usermodel.HSSFCell;
//public class CreateExcel {
//
//	public static void main(String[] args){
//		//Create a Workbook
//		try{
//			String filename = "/sandbox/newExcelFile.xls";
//			HSSFWorkbook workbook = new HSSFWorkbook();
//			HSSFSheet sheet = workbook.createSheet("firstSheet");
//			HSSFSheet sheet2 = workbook.createSheet("secondSheet");
//			
//			HSSFRow rowhead = sheet.createRow((short)0);
//			rowhead.createCell(0).setCellValue("姓名");
//			rowhead.createCell(1).setCellValue("年龄");
//			
//			HSSFRow row = sheet.createRow((short)1);
//			row.createCell(0).setCellValue("张亚丽");
//			row.createCell(1).setCellValue(18);
//			
//			FileOutputStream fileOut = new FileOutputStream(filename);
//			workbook.write(fileOut);
//			fileOut.close();
//			System.out.println("创建表格成功");
//		}catch(Exception e){
//			System.out.println("创建表格失败");
//			e.printStackTrace();
//		}
//	}
//}
